package com.atgm.mall.gmmallclub.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 游戏评论信息
 */
@Data
@TableName(value = "club_game_comment")
public class GameCommentEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long memberId;

    /**
     * 游戏id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long gameId;

    /**
     * 评分
     */
    private Integer scope;

    /**
     * 有用数量
     */
    private Integer usefulCount;

    /**
     * 无用数量
     */
    private Integer uselessCount;

    /**
     * 回复数量
     */
    private Integer replyCount;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

}
